﻿#include "concretefactory1.h"

#include <QDebug>

#include "abstractproducta.h"
#include "abstractproductb.h"
#include "concreteproducta1.h"
#include "concreteproductb1.h"

ConcreteFactory1::ConcreteFactory1() : AbstractFactory()
{

}

AbstractProductA *ConcreteFactory1::createProductA()
{
    AbstractProductA* product = new ConcreteProductA1();
    return product;
}

AbstractProductB *ConcreteFactory1::createProductB()
{
    AbstractProductB* product = new ConcreteProductB1();
    return product;
}
